package com.ktgj.customer.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktgj.common.core.annotation.Excel;
import com.ktgj.common.core.web.domain.BaseEntity;

/**
 * 合同2对象 travel_contract
 * 
 * @author ruoyi
 * @date 2021-10-26
 */
public class TravelContract extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 合同表主键 */
    private Long contractId;

    /** 合同编号 */
    @Excel(name = "合同编号")
    private String contractNum;

    /** 供应商表主键 */
    @Excel(name = "供应商表主键")
    private Long supplierId;

    /** 合作商地址 */
    @Excel(name = "合作商地址")
    private String address;

    /** 合作商电话 */
    @Excel(name = "合作商电话")
    private String phone;

    /** 合作开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合作开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 合作开始时间 */
    @Excel(name = "合作开始时间")
    private String startDate;

    /** 合作结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合作结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 合作结束时间 */
    @Excel(name = "合作结束时间")
    private String endDate;

    /** 甲方签约人 */
    @Excel(name = "甲方签约人")
    private String signPartyA;

    /** 甲方电话 */
    @Excel(name = "甲方电话")
    private String phonePartyA;

    /** 甲方商务 */
    @Excel(name = "甲方商务")
    private String businessPartyA;

    /** 乙方签约人 */
    @Excel(name = "乙方签约人")
    private String signPartyB;

    /** 乙方电话 */
    @Excel(name = "乙方电话")
    private String phonePartyB;

    /** 乙方商务 */
    @Excel(name = "乙方商务")
    private String businessPartyB;

    /** 甲方签署公司 */
    @Excel(name = "甲方签署公司")
    private String companyPartyA;

    /** 0禁用，1启用*/
    @Excel(name = "0禁用，1启用")
    private String contractStatus;

    /*----------------------------------------------------*/

    /**
     * 错误信息
     * */
    @Excel(name = "错误信息")
    private String msg;

    /**
     * 供应商名称
     * */
    @Excel(name = "供应商名称")
    private String name;

    /**
     * 状态
     * */
    @Excel(name = "状态")
    private String start;

    /**
     * 供应商名称
     * */
    @Excel(name = "供应商名称")
    private String supplierName;

    /**
     * 合同附件url
     * */
    @Excel(name = "合同附件url")
    private List<String> urlList;

    private List<TravelContractDocument> lstContractDocuments;

    public List<TravelContractDocument> getLstContractDocuments()
    {
        return lstContractDocuments;
    }

    public void setLstContractDocuments(List<TravelContractDocument> lstContractDocuments)
    {
        this.lstContractDocuments = lstContractDocuments;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public List<String> getUrlList() {
        return urlList;
    }

    public void setUrlList(List<String> urlList) {
        this.urlList = urlList;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStart() {
        return start;
    }

    public void setStart(String start) {
        this.start = start;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setContractId(Long contractId)
    {
        this.contractId = contractId;
    }

    public Long getContractId() 
    {
        return contractId;
    }
    public void setContractNum(String contractNum) 
    {
        this.contractNum = contractNum;
    }

    public String getContractNum() 
    {
        return contractNum;
    }
    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setSignPartyA(String signPartyA) 
    {
        this.signPartyA = signPartyA;
    }

    public String getSignPartyA() 
    {
        return signPartyA;
    }
    public void setPhonePartyA(String phonePartyA) 
    {
        this.phonePartyA = phonePartyA;
    }

    public String getPhonePartyA() 
    {
        return phonePartyA;
    }
    public void setBusinessPartyA(String businessPartyA) 
    {
        this.businessPartyA = businessPartyA;
    }

    public String getBusinessPartyA() 
    {
        return businessPartyA;
    }
    public void setSignPartyB(String signPartyB) 
    {
        this.signPartyB = signPartyB;
    }

    public String getSignPartyB() 
    {
        return signPartyB;
    }
    public void setPhonePartyB(String phonePartyB) 
    {
        this.phonePartyB = phonePartyB;
    }

    public String getPhonePartyB() 
    {
        return phonePartyB;
    }
    public void setBusinessPartyB(String businessPartyB) 
    {
        this.businessPartyB = businessPartyB;
    }

    public String getBusinessPartyB() 
    {
        return businessPartyB;
    }
    public void setCompanyPartyA(String companyPartyA) 
    {
        this.companyPartyA = companyPartyA;
    }

    public String getCompanyPartyA() 
    {
        return companyPartyA;
    }
    public void setContractStatus(String contractStatus) 
    {
        this.contractStatus = contractStatus;
    }

    public String getContractStatus() 
    {
        return contractStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("contractId", getContractId())
            .append("contractNum", getContractNum())
            .append("supplierId", getSupplierId())
            .append("address", getAddress())
            .append("phone", getPhone())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("signPartyA", getSignPartyA())
            .append("phonePartyA", getPhonePartyA())
            .append("businessPartyA", getBusinessPartyA())
            .append("signPartyB", getSignPartyB())
            .append("phonePartyB", getPhonePartyB())
            .append("businessPartyB", getBusinessPartyB())
            .append("companyPartyA", getCompanyPartyA())
            .append("contractStatus", getContractStatus())
            .toString();
    }
}
